//
//  ServiceViewController.m
//  MemberProject
//
//  Created by MAC OS X on 15/4/2.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "ServiceViewController.h"

@interface ServiceViewController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *webView;
@property(strong,nonatomic)UIActivityIndicatorView *activityIndicatorView;
@end

@implementation ServiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"服务台";
    NSString *urlStr=[[NSString alloc]initWithFormat:@"%@/service.jsp",localHost];
//    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];
//    [self.webView setScalesPageToFit:YES];
//    self.webView.delegate=self;
//    self.activityIndicatorView=[[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(0, 0, 30, 30)];
//    [self.view addSubview:self.activityIndicatorView];
//    self.activityIndicatorView.center=CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);
//    self.activityIndicatorView.activityIndicatorViewStyle=UIActivityIndicatorViewStyleGray;

}

//-(void)viewDidAppear:(BOOL)animated{
//    [self.view bringSubviewToFront:self.activityIndicatorView];
//}
//
//#pragma mark - webView delegate
//- (void)webViewDidStartLoad:(UIWebView *)webView{
////    [SVProgressHUD show];
//    [self.activityIndicatorView startAnimating];
//}
//
//- (void)webViewDidFinishLoad:(UIWebView *)webView{
////    [SVProgressHUD dismiss];
//    [self.activityIndicatorView stopAnimating];
//}

//- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
////    [SVProgressHUD showErrorWithStatus:@"网络错误"];
//    [self.activityIndicatorView stopAnimating];
//}



@end
